package com.module.oa.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 员工信息对象 employee
 * 
 * @author hezhengxian
 * @date 2023-09-08
 */
public class Employee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private Long employeeId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 职位 */
    @Excel(name = "职位")
    private String position;

    /** 部门 */
    @Excel(name = "部门")
    private String department;

    /** 入职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date hhireDate;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    /** 薪酬 */
    @Excel(name = "薪酬")
    private BigDecimal salary;

    /** 绩效得分 */
    @Excel(name = "绩效得分")
    private Integer performance;

    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setHhireDate(Date hhireDate) 
    {
        this.hhireDate = hhireDate;
    }

    public Date getHhireDate() 
    {
        return hhireDate;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setSalary(BigDecimal salary) 
    {
        this.salary = salary;
    }

    public BigDecimal getSalary() 
    {
        return salary;
    }
    public void setPerformance(Integer performance) 
    {
        this.performance = performance;
    }

    public Integer getPerformance() 
    {
        return performance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("employeeId", getEmployeeId())
            .append("name", getName())
            .append("position", getPosition())
            .append("department", getDepartment())
            .append("hhireDate", getHhireDate())
            .append("phone", getPhone())
            .append("salary", getSalary())
            .append("performance", getPerformance())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
